package com.gk.panda.apis.mapper;

import com.gk.panda.apis.dto.EquipmentPointDto;
import com.gk.panda.apis.entity.TransectManager.dto.GetEquipmentPointDto;
import com.gk.panda.apis.entity.TransectManager.vo.EquipmentPointVo;
import com.gk.panda.apis.entity.largeScreen.dto.EPListDto;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface EquipmentPointMapper {

    //添加设备点位
    int insertEquipmentPoint(EquipmentPointDto equipmentPointDto);

    //获取设备点位详情
    EquipmentPointVo getEPInfo(Integer id);

    //获取设别点位列表
    List<EquipmentPointVo> getEPList(GetEquipmentPointDto equipmentPointDto);

    //删除设备点位
    int removeEPById(Integer id);

    //修改设备点位
    int updateEquipmentPoint(EquipmentPointDto equipmentPointDto);

    @Update("Delete from equipment_point where 1=1")
    void truncate();

    //根据设备编号获取设备点位详情
    EquipmentPointVo getEquipmentPointBySn(String deviceSn);

    void insertEquipmentPointList(List<EquipmentPointDto> dtos);

    List<EquipmentPointVo> getEPListForLS(EPListDto dto);
}
